package org.aynu.cartservice.service;

import org.aynu.cartservice.common.CartResponse;
import org.aynu.cartservice.model.CartDTO;

public interface CartService {
    CartResponse<Integer> createCart(int userId);
    CartResponse<Integer> selectCartId(int userId);
    CartResponse<String> addItemToCart(int userId, int productId, int quantity);
    CartResponse<CartDTO> getCartContent(int userId);
    CartResponse<String> updateItemQuantity(int userId, int productId, int quantity);
    CartResponse<String> deleteItemFromCart(int userId, int productId);
    CartResponse<String> deleteAllItemsFromCart(int userId); // 新增方法声明
}